package com.dnjn.happiness.survey.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dnjn.happiness.survey.domain.SurveyRecord;
import com.dnjn.happiness.survey.domain.vo.AnswerVO;
import com.dnjn.happiness.survey.domain.vo.ExportSurveyRecord;
import com.dnjn.happiness.survey.domain.vo.SurveyAnswerTypeVo;
import com.dnjn.happiness.survey.domain.vo.SurveyRecordVO;
import com.dnjn.happiness.survey.domain.vo.SurveyUserVO;
import com.dnjn.happiness.system.api.domain.SysUser;

import java.util.List;

/**
 * 参加问卷的人记录Service接口
 *
 * @author happiness
 * @date 2023-10-23
 */
public interface ISurveyRecordService extends IService<SurveyRecord> {

    int goToPing(SurveyRecord surveyRecord);

    int getSurveyRecordNotJoin(Long userId, String time);

    Page<SurveyRecord> getPage(Page page, SurveyRecordVO surveyRecordVO);

    List<SysUser> goToTheDetailsView(Long surveyId);

    List<SurveyRecord> forSurveyDetailsSeeFeedbackBySurveyIdAndLeaderId(Long surveyId, Long leaderId);

    List<SurveyRecordVO> getPage1(SurveyRecordVO surveyRecordVO);

    List<SurveyUserVO> selectGrade(Long surveyId);

    SurveyUserVO queryRecord(Long surveyRecord);

    Page<SurveyRecord> goToTheSurveyDetailsView(Page<SurveyRecord> page, Long surveyId, String SurveyStatus);


    Page<SurveyRecord> answerDetailsFilterTheCorrespondingScoreRange(Page<SurveyRecord> page, Long surveyId, Integer startScore, Integer endScore);

    List<SurveyRecord> queryRecordX(Long surveyId);

    List<SurveyRecord> selectGradeX(Long surveyId);

    List<SurveyUserVO> serchRecoed(AnswerVO answerVO);

    Double selectGradeByX(Long userId, String time, double recordScore, double x, double y);

    Integer getSurveyRecordNotJoinNew(Long userId);

    List<SurveyUserVO> screeningSubmit(AnswerVO answerVO);

    List<SurveyRecord> exportSurveyId(Long surveyId);

    List<ExportSurveyRecord> exportSurveyRecord(Long surveyId);

    List<SurveyAnswerTypeVo> getRecordByUserId(Long userId, String tikuTagsType);

    List<SurveyRecord> queryRecordBySurveyIdIsNot(long surveyId);

}
